<div class="body">
    <h2><?php echo getLang('Products')?></h2>
    <table width="100%">
    <tr>
        <td valign="top" width="200">
        <div class="listcatpro">    
            <?php
            foreach($listcat as $cat)
            {
                $Link     = getUrlCatByType('product').'/'.$cat['cUrlString'];
            ?>
                <li><a href="<?php echoLink($Link)?>"><?php echo $cat['cName']?></a></li>
            <?php
            }
            ?>
        </div>
        
        <div class="listcatpro">    
            <div><strong><?php echo getLang('Your cart')?></strong></div>
            <div  id="listcartright">
                <?php echo $carts['msg']?>
            </div>
            <a class="but2" href="<?php echoLink(getUrlCatByType('product').'/cart')?>" <?php if($carts['count']==0)echo 'style="display: none;"'?> id="bookcart">
                <?php echo getLang('Checkout')?>
            </a>
            <div class="clear"></div>
        </div>
        
        </td>
        <td>
    <?php 
    if($html->getContent('type')=='product')
    {
        $imglink    = GetIntroImg($html->getContent('cImage'));    
    ?>
        <div class="img">
            <img src="<?php echo ($imglink)?>" width="150" /> 
        </div>
        <div>
            <div class="ttp"><?php echo $html->getContent('cName')?></div>
            <?php 
            $code   = $html->getContent('cCode');
            if(!empty($code))
            {
            ?>
                <div><?php echo getLang('Product Code')?>: <?php echo $code?></div>
            <?php
            }
            ?>
            <?php 
            $price   = getPriceClient($html->getContent('cPrice'));
            if(!empty($price))
            {
            ?>
                <div><?php echo getLang('Price')?>: <?php echo $price?></div>
            <?php
            }
            ?>
            <a class="but2" onclick="addcart(<?php echo $html->getId()?>,this)"><?php echo getLang('Add Cart')?></a>                                                     
        </div>
        <div class="clear"></div>
        <div class="pro">  
            <?php echo ParseText($html->getContent('cContent'))?>
        </div>   
            
        <div>
        <?php
        if(count($photos)>0)
        {
        ?>
            <script src="<?php echoLink('javascript/lightbox/jquery.js')?>" type="text/javascript"></script>
            <script src="<?php echoLink('javascript/lightbox/jquery.lightbox.js')?>" type="text/javascript"></script>
            <script>
                    var dirimage="<?php echoLink('javascript/lightbox/')?>";
            		$(document).ready(function(){
            			$(".lightbox").lightbox();
            		});
            </script>
            <link rel="stylesheet" href="<?php echoLink('javascript/lightbox/lightbox.css')?>" type="text/css" media="screen" />
        <?php
        }
        foreach($photos  as $photo)
        {
        ?>
            <a class="limgpro lightbox" href="<?php echo GetIntroImg($photo['cImage'])?>"  rel="flowers">
                <img src="<?php echo GetIntroImg($photo['cImage'],true)?>" border="0"/>
            </a>
        <?
        }
        ?>
        </div>
        <div class="clear">&nbsp;</div>
        
        <?php
        if(!empty($otherproduct))
        {
        ?>
        <br /><br />
            <div class="ttp"><?php echo getLang('Other product')?></div>
            <br />
            <?php echo $otherproduct?>
        <?php
        }
        ?>
        
    <?php 
    }
    else if($html->getUrl()=='cart')
    {
    ?>
      
        <div id="listcart">
            <?php echo $listCart?>
        </div>
        <?php include('formbooking.tpl')?>
        
     <?php 
     }
     else if($html->getUrl()=='order')
     {
     ?>
                     
        <div id="listcart">
            <?php echo $listCart?>                
        </div>
                    
    <?php 
    }
    else 
    {
    ?>                    
        <?php echo $products?>                      
    <?php 
    }
    ?>
    </td>
    </tr>
    </table>
</div>